﻿using System;

namespace Calculate
{
    public class Program
    {
        static void Main(string[] args)
        {
            double num1, num2;
            char op;
            double result;
            num1 = Convert.ToDouble(Console.ReadLine());
            num2 = Convert.ToDouble(Console.ReadLine());
            op = Convert.ToChar(Console.ReadLine());
            switch (op)
            {
                case '+':
                    result = num1 + num2;
                    break;
                case '-':
                    result = num1 - num2;
                    break;
                case '*':
                    result = num1 * num2;
                    break;
                case '/':
                    result = num1 / num2;
                    break;
                default:
                    throw new Exception();
            }
            Console.WriteLine(result);
            Console.ReadLine();
        }
    }
}
